<script>
	$(function(){
		$("#shop_id").combobox({    
		    url: '/shop/combobox',  
		    valueField:'id',
    		textField:'name',  
		    required: true,
		    width:250,
		    onSelect: function(rec){    
		    	$('#customer_type_id').combobox('clear');
	            var url = '/customerType/combobox/'+rec.id;    
	            $('#customer_type_id').combobox('reload', url).combobox('selectedIndex');
	        } 
		}); 
		var shop_id="${(po.shop_id)!}";
		var url = "";
		if(shop_id!=""){
			url = '/customerType/combobox/${(po.shop_id)!}';
		}
		$('#customer_type_id').combobox({
			url:url,
			valueField:'id', 
			textField:'name',
			required: true,
		}); 
		
		var flag = "${(po.front_sign)!0}";
		$("input[name='customer.front_sign']").eq(flag).attr("checked",'checked');
	})
</script>
<form method="post" id="editForm" name="editForm">
	<input type="hidden" name="customer.id" value="${(po.id)!}" id="poid">
	<div id="tt" class="easyui-tabs" style="width: 786px; height: 450px;">
		<div title="会员" style="padding: 5px;">
			<table class="tableForm tableCss">
				<tr>
					<th>商户</th>
					<td colspan="3">
						 <input id="shop_id" name="customer.shop_id" value="${(po.shop_id)!}"> 
					</td>
				</tr>
				<tr>
					<th>用户类型</th>
					<td colspan="3">
						 <input id="customer_type_id" name="customer.customer_type_id" value="${(po.customer_type_id)!}"> 
					</td>
				</tr>
				<tr>
					<th><font color=red>*</font>用户名称</th>
					<td><input type="text" name="customer.username" class="easyui-validatebox"
						value="${(po.username)!}" data-options="required:true"></td>
					<th>密码</th>
					<td><input type="text" name="customer.password"
						class="easyui-validatebox" value="${(po.password)!}"
						data-options=""></td>
				</tr>
				<tr>
					<th>真实姓名</th>
					<td colspan="3"><input type="text" class="easyui-validatebox" name="po.realname" value="${(po.realname)!}"/></td>
				</tr>
				<tr>
					<th>是否需要订金</th>
					<td colspan="3">
						否  <input type="radio" value="0" name="customer.front_sign" checked/>
						是  <input type="radio" value="1" name="customer.front_sign"/>
					</td>
				</tr>
				<tr>
					<th><font color=red>*</font>手机号</th>
					<td><input type="text" name="customer.phone" class="easyui-validatebox"
						value="${(po.phone)!}" data-options="required:true"></td>
					<th>邮箱</th>
					<td><input type="text" name="customer.email"
						class="easyui-validatebox" value="${(po.email)!}"
						data-options="validType:'email'"></td>
				</tr>
				
			</table>
		</div>
	</div>
</form>